<?php
session_start();
?>

<div class="top_wai">
        <div class="top">
            <div class="top1">
                <div class="top1_left">您好！欢迎光临芙拉维亚定制蛋糕</div>
                <div class="top1_right">
                    <a href="">购物车&nbsp;&nbsp;|&nbsp;&nbsp;</a>
                   
                    <?php  if(isset($_SESSION['vname'])){
                        //登录
                    ?>
                    欢迎您,<a href="#"><?php echo($_SESSION['vname']) ?></a>
                    &nbsp;&nbsp;|&nbsp;&nbsp;<a href="index.php" id="exit">退出管理</a>
                    <?php }
                        else{ ?>
                        <a href="l.php">【登录】</a>&nbsp;|
                        <a href="r.php">【注册】</a>
                    <?php } ?>
                    

                </div>
            </div>
            <div style="clear:both"></div>
            <div class="logo">
                <div class="logo1">
                    <a href="">
                        <img src="../images/header/logo.png" alt=""/>
                    </a>
                </div>
                <div class="search">
                    <form action="" id="form1" name="form1" method="post">
                        <table width="240px" border="0" cellpadding="0">
                            <tbody>
                                <tr>
                                    <td width="182" height="22" align="center" valign="middle"
                                            background="../images/header/ser1.jpg">
                                        <input type="text" name="key" class="serser">
                                    </td>
                                    <td width="58">
                                        <input type="image" name="imagesField" src="../images/header/ser2.jpg"/>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </form>
                </div>
            </div>
            <div style="clear:both;"></div>
        </div>

    </div>
<div style="clear:both"></div>
<div class="menu">
        <div class="menu1">
            <div class="menu2"><a href="index.php">首页</a></div>
            <div class="menu2"><a href="../html/order/order.php">定制蛋糕</a></div>
            <div class="menu2"><a href="../html/dessert/dessert.php">茶歇甜品桌</a></div>
            <div class="menu2"><a href="../html/teatime/teatime.php">精致下午茶</a></div>
            <div class="menu2"><a href="../html/party/party.php">派对时刻</a></div>
            <div class="menu2"><a href="../html/join/join.php">加盟芙拉维亚</a></div>
        </div>
    </div>
<div style="clear:both"></div>

<script src="../js/jquery-3.1.1.js"></script>
<script>
    $('#exit').click(function(){
        <?php 
          session_destroy();
        ?>
        alert("已经退出登陆！");
        location.href="index.php";
        })
</script>
